package com.ms.service.module.zone.action;

import com.ms.service.module.zone.message.SGameJackPotLockResquest;
import com.ms.service.module.zone.message.SGameJackPotUnLockResquest;
import com.ms.service.module.zone.module.BasicJackPotModule;
import com.xpec.c4.message.MessageTypes;
import com.xpec.c4.service.annotations.MessageType;
import com.xpec.c4.service.common.BaseMessageAction;

public class BasicJackPotAction extends BaseMessageAction {
	
	/**
	 * 確認是否中彩，並鎖定資格
	 * @param request
	 */
	@MessageType(typeCode = MessageTypes.S_GAME_JACKPOT_LOCK)
	public void revLockJackPot(SGameJackPotLockResquest request)
	{
		((BasicJackPotModule)this.getModule()).onLockJackPot(request , this );
	}
	
	/**
	 *回覆中彩執行結果，並解鎖
	 * @param request
	 */
	@MessageType(typeCode = MessageTypes.S_GAME_JACKPOT_UNLOCK)
	public void revUnLockJackPot(SGameJackPotUnLockResquest request)
	{
		((BasicJackPotModule)this.getModule()).onUnLockJackPot(request , this );
	}
	
	@MessageType(typeCode = MessageTypes.S_GAME_CACHE_JACKPOT_OK)
	public void revCacheDataComplete(Object obj)
	{
		((BasicJackPotModule)this.getModule()).onCacheJpDataOK();
	}
}
